<template>
  <div class="home-container">
    <!-- 轮播图区域 -->
    <div class="carousel-section">
      <a-carousel autoplay :autoplay-speed="5000" effect="fade">
        <div class="carousel-item">
          <img class="carousel-image" src="/src/static/iot1.png" alt="中联物联">
          <div class="carousel-overlay">
            <div class="carousel-content">
              <h2 class="carousel-title">中联物联 · 连接未来</h2>
              <p class="carousel-subtitle">专业的物联网解决方案提供商</p>
            </div>
          </div>
        </div>
        <div class="carousel-item">
          <img class="carousel-image" src="/src/static/img2.png" alt="工业互联">
          <div class="carousel-overlay">
            <div class="carousel-content">
              <h2 class="carousel-title">工业互联 · 智能制造</h2>
              <p class="carousel-subtitle">推动企业数字化转型升级</p>
            </div>
          </div>
        </div>
        <div class="carousel-item">
          <img class="carousel-image" src="/src/static/iot3.png" alt="数字未来">
          <div class="carousel-overlay">
            <div class="carousel-content">
              <h2 class="carousel-title">数字未来 · 创新驱动</h2>
              <p class="carousel-subtitle">打造智慧城市新生态</p>
            </div>
          </div>
        </div>
      </a-carousel>
    </div>

    <!-- 核心优势区域 -->
    <div class="advantages-section">
      <div class="section-header">
        <h2 class="section-title">为什么选择 Zomiot 中联物联？</h2>
        <p class="section-subtitle">三大核心优势，为您的业务保驾护航</p>
        <div class="title-decoration"></div>
      </div>

      <a-row :gutter="[32, 32]" class="advantages-content">
        <!-- 服务保证 -->
        <a-col :xs="24" :sm="24" :lg="8">
          <div class="advantage-card">
            <div class="card-icon-wrapper service">
              <img src="/src/static/icon1.png" class="card-icon-img" alt="服务保证">
            </div>
            <h3 class="advantage-title">服务保证</h3>
            <div class="advantage-divider"></div>
            <p class="advantage-description">
              为让您享受安心的服务体验，我们坚守三大服务准则：
            </p>
            <ul class="advantage-list">
              <li><CheckCircleOutlined class="list-icon" /> <span>服务前清晰告知全流程、收费标准，杜绝隐形消费</span></li>
              <li><CheckCircleOutlined class="list-icon" /> <span>服务中配备专属顾问，及时解答疑问、同步进度</span></li>
              <li><CheckCircleOutlined class="list-icon" /> <span>服务后 启动复核流程，优化调整直至满意</span></li>
            </ul>
            <div class="advantage-badge">咨询无门槛 · 消费无顾虑 · 售后无担忧</div>
          </div>
        </a-col>

        <!-- 技术保证 -->
        <a-col :xs="24" :sm="24" :lg="8">
          <div class="advantage-card featured">
            <div class="featured-tag">hot</div>
            <div class="card-icon-wrapper tech">
              <img src="/src/static/icon2.png" class="card-icon-img" alt="技术保证">
            </div>
            <h3 class="advantage-title">技术保证</h3>
            <div class="advantage-divider"></div>
            <p class="advantage-description">
              以技术落地效果为核心，作出明确技术保证：
            </p>
            <ul class="advantage-list">
              <li><CheckCircleOutlined class="list-icon" /> <span>技术服务前全面调研，输出可落地、可验证的技术方案</span></li>
              <li><CheckCircleOutlined class="list-icon" /> <span>服务过程中提供阶段性测试演示，全程参与确认</span></li>
              <li><CheckCircleOutlined class="list-icon" /> <span>服务交付后提供 6 个月技术指导支持</span></li>
            </ul>
            <div class="advantage-badge primary">让技术创造实际价值</div>
          </div>
        </a-col>

        <!-- 深度运营商资源 -->
        <a-col :xs="24" :sm="24" :lg="8">
          <div class="advantage-card">
            <div class="card-icon-wrapper resource">
              <img src="/src/static/icon3.png" class="card-icon-img" alt="运营商资源">
            </div>
            <h3 class="advantage-title">深度运营商资源</h3>
            <div class="advantage-divider"></div>
            <p class="advantage-description">
              拥有覆盖全国的深度运营商资源网络：
            </p>
            <ul class="advantage-list">
              <li><CheckCircleOutlined class="list-icon" /> <span>与三大运营商及多家地方核心运营商达成战略合作</span></li>
              <li><CheckCircleOutlined class="list-icon" /> <span>业务覆盖一线至五线城市及县域市场</span></li>
              <li><CheckCircleOutlined class="list-icon" /> <span>快速调动属地运营商的网络、渠道与服务资源</span></li>
            </ul>
            <div class="advantage-badge">全国覆盖 · 高效落地</div>
          </div>
        </a-col>
      </a-row>
    </div>

    <!-- 服务对象区域 -->
    <div class="clients-section">
      <div class="section-header">
        <h2 class="section-title">服务对象</h2>
        <p class="section-subtitle">为不同行业和规模的企业提供专业服务</p>
        <div class="title-decoration"></div>
      </div>

      <a-row :gutter="[24, 24]" class="clients-content">
        <a-col :xs="12" :sm="8" :lg="4">
          <div class="client-card">
            <div class="client-icon manufacturing">
              <SettingOutlined />
            </div>
            <div class="client-name">制造企业</div>
          </div>
        </a-col>
        <a-col :xs="12" :sm="8" :lg="4">
          <div class="client-card">
            <div class="client-icon energy">
              <ThunderboltOutlined />
            </div>
            <div class="client-name">能源企业</div>
          </div>
        </a-col>
        <a-col :xs="12" :sm="8" :lg="4">
          <div class="client-card">
            <div class="client-icon agriculture">
              <EnvironmentOutlined />
            </div>
            <div class="client-name">农业企业</div>
          </div>
        </a-col>
        <a-col :xs="12" :sm="8" :lg="4">
          <div class="client-card">
            <div class="client-icon logistics">
              <CarOutlined />
            </div>
            <div class="client-name">物流企业</div>
          </div>
        </a-col>
        <a-col :xs="12" :sm="8" :lg="4">
          <div class="client-card">
            <div class="client-icon government">
              <BankOutlined />
            </div>
            <div class="client-name">政府机构</div>
          </div>
        </a-col>
        <a-col :xs="12" :sm="8" :lg="4">
          <div class="client-card">
            <div class="client-icon education">
              <ReadOutlined />
            </div>
            <div class="client-name">教育机构</div>
          </div>
        </a-col>
      </a-row>
    </div>

    <!-- 数据展示区域 -->
    <div class="statistics-section">
      <a-row :gutter="[32, 32]">
        <a-col :xs="12" :sm="12" :lg="6">
          <div class="stat-card">
            <div class="stat-number">500+</div>
            <div class="stat-label">服务客户</div>
          </div>
        </a-col>
        <a-col :xs="12" :sm="12" :lg="6">
          <div class="stat-card">
            <div class="stat-number">1000+</div>
            <div class="stat-label">成功案例</div>
          </div>
        </a-col>
        <a-col :xs="12" :sm="12" :lg="6">
          <div class="stat-card">
            <div class="stat-number">98%</div>
            <div class="stat-label">客户满意度</div>
          </div>
        </a-col>
        <a-col :xs="12" :sm="12" :lg="6">
          <div class="stat-card">
            <div class="stat-number">7x24</div>
            <div class="stat-label">技术支持</div>
          </div>
        </a-col>
      </a-row>
    </div>

    <!-- 行动号召区域 -->
    <div class="cta-section">
      <h2 class="cta-title">准备好开启数字化转型之旅了吗？</h2>
      <p class="cta-description">立即联系我们，获取专属解决方案</p>
      <a-space size="large">
        <a-button type="primary" size="large" class="cta-btn">
          <PhoneOutlined /> 立即咨询
        </a-button>
        <a-button size="large" class="cta-btn-outline">
          <FormOutlined /> 在线留言
        </a-button>
      </a-space>
    </div>
  </div>
</template>

<script setup>
import {
  CheckCircleOutlined,
  SettingOutlined,
  ThunderboltOutlined,
  EnvironmentOutlined,
  CarOutlined,
  BankOutlined,
  ReadOutlined,
  PhoneOutlined,
  FormOutlined
} from '@ant-design/icons-vue';
</script>

<style scoped>
.home-container {
  background: #f0f2f5;
}

/* ==================== 轮播图区域 ==================== */
.carousel-section {
  margin: 0;
  position: relative;
}

:deep(.slick-slide) {
  height: auto !important;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  height: auto;
  min-height: 400px;
  overflow: hidden;
}

.carousel-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 21, 41, 0.8) 0%, rgba(0, 21, 41, 0.2) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.carousel-content {
  text-align: left;
  color: #fff;
  padding: 60px 50px;
  max-width: 1400px;
  width: 100%;
}

.carousel-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: -33px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.carousel-subtitle {
  font-size: 21px;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: -24px;
  margin-top: 23px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== 核心优势区域 ==================== */
.advantages-section {
  max-width: 1400px;
  margin: -60px auto 0;
  padding: 100px 20px 80px;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #001529;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 16px;
}

.title-decoration {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #1890ff, #096dd9);
  margin: 0 auto;
  border-radius: 2px;
}

.advantages-content {
  margin-top: 40px;
}

/* 优势卡片 */
.advantage-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #1890ff, #52c41a);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.advantage-card.featured {
  border: 2px solid #1890ff;
  background: linear-gradient(to bottom, #f0f9ff 0%, #fff 20%);
}

.featured-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.card-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.advantage-card:hover .card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.card-icon-wrapper.service {
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

.card-icon-wrapper.tech {
  background: linear-gradient(135deg, #f0f9ff 0%, #91d5ff 100%);
}

.card-icon-wrapper.resource {
  background: linear-gradient(135deg, #f6ffed 0%, #b7eb8f 100%);
}

.card-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.advantage-title {
  font-size: 24px;
  font-weight: 600;
  color: #001529;
  text-align: center;
  margin-bottom: 16px;
}

.advantage-divider {
  width: 40px;
  height: 3px;
  background: #1890ff;
  margin: 0 auto 24px;
  border-radius: 2px;
}

.advantage-description {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
}

.advantage-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.advantage-list li {
  padding: 12px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
}

.list-icon {
  color: #52c41a;
  margin-right: 8px;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.advantage-badge {
  background: linear-gradient(135deg, #f0f2f5 0%, #e6e8eb 100%);
  color: #1890ff;
  padding: 10px 20px;
  border-radius: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
}

.advantage-badge.primary {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  color: #fff;
}

/* ==================== 服务对象区域 ==================== */
.clients-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  background: #fff;
}

.clients-content {
  margin-top: 40px;
}

.client-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-card:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.client-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  transition: all 0.3s ease;
}

.client-card:hover .client-icon {
  transform: scale(1.1);
}

.client-icon.manufacturing {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.client-icon.energy {
  background: linear-gradient(135deg, #faad14 0%, #fa8c16 100%);
}

.client-icon.agriculture {
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

.client-icon.logistics {
  background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
}

.client-icon.government {
  background: linear-gradient(135deg, #eb2f96 0%, #c41d7f 100%);
}

.client-icon.education {
  background: linear-gradient(135deg, #13c2c2 0%, #08979c 100%);
}

.client-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* ==================== 数据展示区域 ==================== */
.statistics-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  background: linear-gradient(135deg, #001529 0%, #002140 100%);
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #1890ff 0%, #52c41a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ==================== 行动号召区域 ==================== */
.cta-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  background: #f0f2f5;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  color: #001529;
  margin-bottom: 16px;
}

.cta-description {
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
}

.cta-btn {
  height: 48px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.cta-btn-outline {
  height: 48px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid #1890ff;
  color: #1890ff;
  background: transparent;
  transition: all 0.3s ease;
}

.cta-btn-outline:hover {
  background: #1890ff;
  color: #fff;
  transform: translateY(-2px);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  .carousel-item {
    min-height: 300px;
  }

  .carousel-image {
    max-height: 400px;
  }

  :deep(.slick-slide) {
    height: auto !important;
  }

  .carousel-content {
    padding: 40px 20px;
  }

  .carousel-title {
    font-size: 28px;
  }

  .carousel-subtitle {
    font-size: 16px;
  }

  .advantages-section {
    margin-top: 0;
    padding: 40px 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .advantage-title {
    font-size: 20px;
  }

  .card-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .card-icon-img {
    width: 48px;
    height: 48px;
  }

  .client-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .stat-number {
    font-size: 36px;
  }

  .cta-title {
    font-size: 24px;
  }
}
</style>